home *** CD-ROM | disk | FTP | other *** search
/ Old Testament Foundatiosn with Philip Yancey / Old Testament Foundatiosn with Philip Yancey - Disc 1.iso / pc / data / discover.dir / 00042_script movie.ls < prev    next >
Encoding:
Text File  |  1996-09-06  |  845 b   |  36 lines

  1. on startMovie
  2.   global gOnIBM
  3.   identifyPlatform()
  4.   formatDisplayFields()
  5. end
  6.  
  7. on formatDisplayFields
  8.   global gOnIBM
  9.   if gOnIBM then
  10.     set the textFont of field "pkdisplaytext" to "Arial"
  11.     set the textSize of field "pkdisplaytext" to 12
  12.   else
  13.     set the textFont of field "pkdisplaytext" to "Geneva"
  14.     set the textSize of field "pkdisplaytext" to 12
  15.   end if
  16. end
  17.  
  18. on showResource
  19.   global gResourceArticle, gOnIBM
  20.   if gOnIBM then
  21.     set mypath to the pathName & "DI_RES\" & gResourceArticle
  22.   else
  23.     set mypath to the pathName & "DI_RES:" & gResourceArticle
  24.   end if
  25.   set gReadFile to FileIO(mnew, "read", mypath)
  26.   if not objectp(gReadFile) then
  27.     exit
  28.   end if
  29.   set myData to gReadFile(mReadFile)
  30.   gReadFile(mdispose)
  31.   put myData into field "pkdisplaytext"
  32.   pupSprites(1, 48, 0)
  33.   updateStage()
  34.   go("ShowResource")
  35. end
  36.